package com.annotationApplicationContext.ch01;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

@Slf4j
public class Student implements InitializingBean,DisposableBean {

    public Student() {
        log.debug(" create Student");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.debug("init Student");
    }

    @Override
    public void destroy() throws Exception {
        log.debug("destroy student");
    }
}
